/*
 * Decompiled with CFR 0.150.
 */
package com.gys.common.enums;

public enum ProRegisterClass {
    P1("1", "\u56fd\u4ea7\u836f\u54c1"),
    P2("2", "\u8fdb\u53e3\u836f\u54c1"),
    P3("3", "\u56fd\u4ea7\u5668\u68b0"),
    P4("4", "\u8fdb\u53e3\u5668\u68b0"),
    P5("5", "\u4e2d\u836f\u996e\u7247"),
    P6("6", "\u7279\u6b8a\u5316\u5986\u54c1"),
    P7("7", "\u6d88\u6bd2\u7528\u54c1"),
    P8("8", "\u4fdd\u5065\u98df\u54c1"),
    P9("9", "QS\u5546\u54c1"),
    P10("10", "\u5176\u5b83");

    private String code;
    private String name;

    private ProRegisterClass(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public static String getName(String code) {
        for (ProRegisterClass form : ProRegisterClass.values()) {
            if (!form.getCode().equals(code)) continue;
            return form.name;
        }
        return null;
    }

    public String getCode() {
        return this.code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }
}

